export function bar(data,data1,data2,data3,data4) {
  var colors = ['#1667DB', '#55CEC7',];
  return{
      title: {
        text:'各年度数据趋势',
        left:'center',
        bottom:'0',
        textStyle:{
          color:'#34404B',
          fontSize:'13',
          lineHeight:'18'
        }
      },
      color: colors,
      tooltip: {
        trigger: 'axis',
        axisPointer: {
          type: 'cross'
        }
      },
      grid: {
        right: '40',
        bottom: '40',
        left:'40',
      },
      toolbox: {

      },
      legend: {
        data: data,
        top:'20',
        icon:'dotted'
      },
      xAxis: [
        {
          type: 'category',
          axisTick: {
            alignWithLabel: true
          },
          data: data1
        }
      ],
      yAxis: [
        {
          type: 'value',
          name: '单位：亿元',
          min: 0,
          max: 250,
          position: 'left',
          axisLine: {
            show: true,
            lineStyle: {
              color: colors[0]
            }
          },
          axisLabel: {
            formatter: '{value}'
          },
          splitLine:{show: false},
        },
        {
          type: 'value',
          name: '单位：%',
          min: 0,
          max: 6,
          position: 'right',
          offset: 0,
          axisLabel: {
            formatter: '{value} '
          },
          splitLine:{show: false},
        }

      ],
      series: [
        {
          name: data[0],
          type: 'bar',
          data: data2
        },
        {
          name: data[1],
          type: 'bar',
          data: data3
        },
        {
          name: data[1],
          // type: 'line',
          yAxisIndex: 1,
          data: data4
        },
      ]
    }
}
